CPP     = g++
MODULE 	= _example.so


all:
	/sw/protobuf-2.3.0/bin/protoc --plugin=protoc-gen-babelsnake=/Users/sellers/workspace2/BabelSnake/src/babelsnake --babelsnake_out=./ example.proto 
	$(CPP) -c example.pb.cc -I /sw/protobuf-2.3.0/include
	$(CPP) -c example_pb_wrap.cxx -I /sw/protobuf-2.3.0/include -I /Library/Frameworks/Python.framework/Versions/3.1/include/python3.1/
	$(CPP) -dynamiclib -o _example_pb.so example_pb_wrap.o example.pb.o \
		-L/sw/protobuf-2.3.0/lib  -L/Library/Frameworks/Python.framework/Versions/3.1/lib -lprotobuf -lpython3.1



clean:
	rm -rf *.o $(EXE) $(MODULE)